<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="nightbeach/masterpage.xhtml">

	<ui:define name="contentType">

		<h:form>
		
		
<!--		<p:calendar value="#{CalendarBean.date1}"></p:calendar>-->
		<h:inputText value="#{CalendarBean.texto}" />
		
		
		<p:commandButton value="Submit" update="display"
					onclick="dialog.show()" />



			<p:dialog header="Selected Dates" widgetVar="dialog"
				showEffect="fold" hideEffect="fold" height="150">

				<h:panelGrid id="display" columns="2" cellpadding="5">

					<h:outputText value="#{CalendarBean.texto}" />
				</h:panelGrid>
				
				</p:dialog>
				


		

		
		</h:form>

	</ui:define>

</ui:composition>
</html>